<?php
/*
   个人资料管理
*/
class ProfileController extends WorkerController {
	public $modelName = 'DealerAccount';
    /*
        actionProfile  基本信息
        actionRepassword   修改密码
    */
	public $defaultAction = 'admin';
	
	public function outerActions() {
		return array(
			'edit' => 'actions.worker.dealer.edit',
			'admin' => 'actions.worker.admin',
			'view' => 'actions.worker.view',
			'commit' => 'actions.audit.commit',
			'updatePwd' => 'actions.updatePwd',
		);
	}
	
	public function modelProvider() {
		return array_merge(parent::modelProvider(), array(
			'criteria' => array('scopes' => 'related'),
		));
	}
}
?>